package com.example.springboot_demo.service.serviceImpl;

import com.example.springboot_demo.dao.AlarmDao;
import com.example.springboot_demo.service.AlarmService;
import com.example.springboot_demo.model.Alarm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 文
 * @Date: 2024/11/26
 * @Time: 16:28
 * To change this template use File | Settings | File Templates.
 * @Description:
 */
@Service
public class AlarmServiceImpl implements AlarmService {

    @Autowired
    private AlarmDao alarmDao;


    @Override
    public ArrayList<Alarm> getAlarmList() {
        return alarmDao.getAlarmList();
    }

    @Override
    public void updateAlarm(Alarm alarm) {
      alarmDao.updateAlarm(alarm);
    }
}
